package com.qiangou.controller;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.entity.ConTags;
import com.entity.Config_Adv;
import com.qiangou.service.ConTagsService;
import com.qiangou.service.ConfigAdvService;

@Controller("creditController")
public class CreditController {
	
	
	@Resource(name="CAService")
	private ConfigAdvService CAService;
	
	@RequestMapping(value="/saveConfigAdv",method=RequestMethod.POST)
	public @ResponseBody String saveConfigAdv(Config_Adv param) {
//		param=HtmlUtilse
		param.setTags(param.getTags().replace("f", ""));
		CAService.saveConfigAdv(param);
		return "ok";
	}
	
/*	@RequestMapping(value="/saveConTags",method=RequestMethod.POST)
	public @ResponseBody String saveConTags(ConTags param) {
//		param=HtmlUtilse
		param.setTags(param.getTags().replace("f", ""));
		CTService.saveConTags(param);
		return "ok";
	}*/
}
